package com.test.p07adapter.example02;

import com.test.p07adapter.example01.Banner;

/**
 * @author bcc
 */
public class AbstractPrintBanner extends AbstractPrint {

    private Banner banner;

    public AbstractPrintBanner(String string){
        this.banner = new Banner(string);
    }

    @Override
    public void printWeak(){
        banner.showWithParen();
    }

    @Override
    public void printStrong(){
        banner.showWithAster();
    }
}
